/**
 * 
 */
package oop.ex2.util;
import oop.ex2.util.exceptions.*;
/**
 * An iterator for files collection.
 */
public interface FileIterator {
    /**
     * Checks if a next element exists.
     * @return True if there is next element, false otherwise.
     */
	public boolean hasNext();
	/**
	 * Returns next element.
	 * @return Next file.
	 * @throws ReaderIOException In case of I/O failure.
	 */
    public String next() throws ReaderIOException;
}
